package com.deng.common.model
{
	import com.adobe.cairngorm.model.IModelLocator;
	import com.deng.common.view.ProgressBarr;
	import com.deng.performance.kpi.vo.KpiValueVo;
	
	import mx.collections.ArrayCollection;
	
	/**
	 * 系统全局变量
	 * @author dmt
	 * 
	 */
	 [Bindable]
	public class CommonModelLocator implements IModelLocator
	{
		private static var instance:CommonModelLocator;
		public function CommonModelLocator()
		{
		}

		public static function getInstance():CommonModelLocator {
			if(instance==null) {
				
				instance=new CommonModelLocator();
			}
			return instance;
		}
		
		public var organizationTable:ArrayCollection;//组织
		public var organizationTree:ArrayCollection = new ArrayCollection();//科室树
		public var leafOrganizationArr:ArrayCollection;//叶子节点科室
		
		public var progress:ProgressBarr = new ProgressBarr();
		
		public var treeTopId:int = 1;//树的顶级节点的id
		
		[Embed(source="/img/login.jpg")]
		public var login:Class;
		
		[Embed(source="/img/loginBG.jpg")]
		public var loginBG:Class;
		
		[Embed(source="/img/banner.jpg")]
		public var banner:Class;
		
		[Embed(source="/img/toolBarBG.jpg")]
		public var toolBarBG:Class;
		
//		[Embed(source="/img/logoTitle.png")]
//		public var logoTitle:Class;
		
		[Embed(source="/img/ICON.jpg")]
		public var ICON:Class;
		
		[Embed(source="img/back.GIF")]           
        public var backIcon:Class; 
            
        [Embed(source="img/refresh.png")]           
        public var refreshIcon:Class; 
            
            
		public var adminDepartmentArr:ArrayCollection;//行政科室LIST
		public var operateDepartmentArr:ArrayCollection;
		
		public var tmpSelKpiValue:KpiValueVo;
	}
}